package com.hkts.flow.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassNameFlowAbleInterceptorConfigeer
 * @Description
 * @Author yck
 * @Date2021-02-01 12:03
 * @Version V1.0
 **/
@Configuration
public class FlowAbleInterceptorConfigeer implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new FlowAbleInterceptor())//注册拦截器
                .addPathPatterns("/**");
    }
}
